import axios from '../axios'

/* 
 * 用户管理模块
 */


// 添加
export const register = (data) => {
  return axios({
    url: '/ssoUser/register',
    method: 'post',
    data
  })
}
// 上传头像
export const addImg = (data) => {
    return axios({
      url: '/ssoUser/addImg',
      method: 'post',
      data
    })
  }
// 获取用户信息
export const getUser = () => {
  return axios({
    url: '/ssoUser/getUser',
    method: 'get'
  })
}

// 获取用户信息
export const editUser = (data) => {
  return axios({
    url: '/ssoUser/edit',
    method: 'post',
    data
  })
}

// 获取用户信息
export const editPassword = (data) => {
  return axios({
    url: '/ssoUser/editPassword',
    method: 'post',
    data
  })
}




